package com.mate.resp;

/**
 * json响应bean
 *
 * @author john
 */
public class JsonData {

    /**
     * 预留错误码区域
     */
    private int resCode;

    /**
     * 返回的数据
     */
    private Object data;

    /**
     * 是否成功
     */
    private boolean success = false;

    /**
     * 失败或成功的提示信息
     */
    private String message;

    public JsonData(boolean success, int resCode, String message, Object data) {
        this.success = success;
        this.resCode = resCode;
        this.message = message;
        this.data = data;
    }

    public int getResCode() {
        return resCode;
    }

    public void setResCode(int resCode) {
        this.resCode = resCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
